import requests
import logging
import config

logging.basicConfig(level=logging.DEBUG)

session = requests.Session()
session.params.update(config.REQUEST_PARAMS)

def get(path, params=None):
    return session.get(f'{config.BASE_URL}{path}', params=params)

def post(path, data=None, params=None):
    return session.post(f'{config.BASE_URL}{path}', data=data, params=params)